package com.wowudi.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wowudi.entity.Patients;
import com.wowudi.mapper.PatientsMapper;
import com.wowudi.service.PatientsService;
@Service
public class PatientsServiceImpl extends ServiceImpl<PatientsMapper, Patients> implements PatientsService{
    @Autowired
    PatientsMapper patientsMapper;
    @Override
    public Page<Patients> getAll(Page<Patients> page) {
        return this.patientsMapper.getAll(page);
    }

    @Override
    public Page<Patients> getAllBynameandid(Page<Patients> page, String cartid, String patiname) {
        return this.patientsMapper.getAllBynameandid(page,cartid,patiname);
    }


}
